@extends('home.index.layout')
@section('fen')
<!-- 头部 -->
        <div class="header clearfix">
            <div class="wrap">
                <div class="logo" style="background:url(./uploads/{{$data->logo or 'logo.jpg'}})">
                    <a href="{{url('/')}}"></a>
                </div>
            </div>
        </div>


<div class="header-nav">
    <div class="wrap">
        <div class="catalogs">
            
            <div class="catalogs-title"><a href="javascript:;">我的订单</a></div>
           
        </div>
    </div>
</div>
    

@endsection
@section('content')
<form action="{{url('/order/tijiao')}}" method="post">
    {{ csrf_field() }}
     

<div class="order">
    <div class="wrap">
        <div class="order-alert">
            <!--收货信息-->
            <div id="order1" class="order-mode complete">
                <h3><i class="o-i-receive"></i>收货信息</h3>
                <div class="o-receive">
                    <div>
                        <ul id="receive1">
                            <!-- {{$i=0}} -->
                            @foreach($ads as $d)
                            <li>
                                <label class="">
                                    <input type="radio" name="info_id" value="{{$d -> id}}">
                                    <span class="adrtag">家庭</span>
                                    <strong>{{$d -> rname}}</strong>
                                    <span>{{$d -> province}} {{$d -> city}} {{$d -> district}} {{$d -> address}}，{{$d -> mobie}} </span>
                                    <b></b>
                                </label>
                                
                            </li>
                            <!-- {{$i++}} -->
                            @endforeach
                            </ul>
                        
                         </div>
                    
                </div>

            </div>
            <!--配送信息-->
            <div id="order2" class="order-mode complete">
                <h3><i class="o-i-delivery"></i>配送信息</h3>
                <div class="o-delivery"><table class="table">
                    <thead>
                        <tr>
                            <th>收货时间</th>
                            <th>运费</th>
                            <th>配送方式</th>
                            <th>备注</th>
                        </tr>         
                    </thead>         
                    <tbody>             
                        <tr>                 
                            <td>                     
                                <a data-toggle="modal" href="#" data-backdrop="static" class="selected" id="theDeliveryDate">全天09:00-21:00</a>                     
                            </td>                 
                            <td><span id="serverFreight">0</span>&nbsp;</td>                 
                            <td>易果生鲜物流</td>                 
                            <td>满100元免基础运费，100元以下收取10元基础运费</td>             
                        </tr>         
                    </tbody>     
                </table></div>
            </div>
            <!--支付信息-->
            <div id="order3" class="order-mode on">
                <h3><i class="o-i-payment"></i>支付信息</h3>
                <div class="o-payment">    <div class="method"> 支付方式：  <input type="radio" name="pay_name" value="0"><span id="paymentName">支付宝</span>         <span id="paymentIcon" style=""><img height="30" src="{{('/ho/imgs/alipay.jpg')}}"></span>  
                                                                            <input type="radio" name="pay_name" value="1"><span id="paymentName">微信支付</span>         <span id="paymentIcon" style=""><img height="30" src="{{('/ho/imgs/weixinzhifu.jpg')}}"></span>    </label></div>
            </div>
            <!--发票信息-->
            <div id="order4" class="order-mode">
                <h3>
                    <i class="o-i-invoice"></i>发票信息
                                    </h3>
                <div class="o-invoice">



    <input name="bill" value="1" type="checkbox" style="cursor:pointer;">需要发票
    
    

                </div>
            </div>
            <!--商品信息-->
            <div id="order5" class="order-mode">
                <h3>
                    <i class="o-i-commodity"></i>商品信息
                    <a class="backcart" href="#">返回购物车&gt;&gt;</a>
                </h3>
                <div class="o-commodity">


<table class="table">
    <thead>
        <tr>
            <th width="590">商品名称</th>
            <th>单价</th>
            <th>数量</th>
            <th>规格</th>
            <th>金额小计</th>
        </tr>
    </thead>
    <tbody>
        {{--dd($res)--}}
        {{--dd(session('home'))--}}
    {{--dd(session('goods_list'))--}}
    <!-- {{$i = 0}} -->
        @foreach(session('goods_list') as $u)
            @foreach($res[$i] as $v)
            {{--dd($v -> gid)--}}
            <tr>
                <td><a target="_blank" href="{{('shopClass')}}">{{$u['gname']}}</a>
                    <i class="i-butui" title="不支持七天无理由退换货"></i>
                </td>
                <td>￥{{$u['gprice']}}</td>
                <td>{{$v ->count }}</td>
                <td>1Kg/份</td>
                <td>￥{{$u['gprice']*$u['count']}}</td>
            </tr>
            <!-- {{$i++}} -->
            @endforeach
        @endforeach
    </tbody>
</table>
<div class="mt10 clearfix">
    <div class="fl">补充说明：<input id="txtWebRemark" type="text" placeholder="选填，补填要求"></div>
    <input type="hidden" id="hascard" value="0">
</div>

                    
                </div>
            </div>
            <div id="order7" class="statistic">
                <p class="right">商品金额：￥<span>{{$zje}}.00</span></p>
            </div>
            <div class="settle-space"></div>
            <div id="order71" class="cart-footer clearfix settle settle-fixed">
                <div class="wrap">
                    <div class="right">
                        <span class="none">商品金额：<em>￥</em><em>{{$zje}}.00</em>元</span>
                        <span class="fs14">应付款：<em>￥</em><em>{{$zje}}.00</em></span>
                        <input type="hidden" name="zje" value="{{$zje}}">
                        <button><div class="btn" style="background-color: rgb(255, 83, 23);">提交订单</div></button>
                    </div>
                </div>
            </div>
        
        </div>
    </div>
</div>
    
</form>


@endsection